package com.hibernate.hrm.entity.dto.contract;

import com.hibernate.hrm.entity.Contract;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
public class ContractEditDTO {
    private Integer contractId;
    private String contractNumber;
    private String contractName;
    private Contract.ContractType contractType;
    private Integer signingPartyAId;
    private Integer signingPartyBId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate effectiveDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate expiryDate;
    private Integer departmentId;
    private Boolean isTransferable;
    private BigDecimal penaltyRate;

    // 劳动合同特有字段
    private String workPosition;
    private String workLocation;

    // 委托合同特有字段
    private String entrustContent;
    private String entrustScope;

    // 服务协议特有字段
    private String serviceContent;
}
